package com.electric.electric.POJO.Entity.admin;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.HashSet;
import java.util.Set;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SysUser {
    private Integer id;
    private String username;
    private String password;
    private String avatarUrl;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;

    // 必须添加角色集合字段
    @Builder.Default
    private Set<SysRole> roles = new HashSet<>();


}
